import BaseApi from '@/api/BaseApi'
import {
	has,
	get
} from 'lodash'

let instance = null

class Index extends BaseApi {
	//密码登录
	
	// login(params = {}) {
	// 	return this.vm.$u.http.post('login', params)
	// }
	
	traffic(params = {}) {
		return this.vm.$u.http.get('home/traffic', {
			params
		})
	}
	
	subscription(params = {}) {
		return this.vm.$u.http.get('home/subscription', {
			params
		})
	}
	
	performance(params = {}) {
		return this.vm.$u.http.get('home/performance', {
			params
		})
	}
	
	partner(params = {}) {
		return this.vm.$u.http.get('home/partner', {
			params
		})
	}
	
	reservation(params = {}) {
		return this.vm.$u.http.get('home/reservation', {
			params
		})
	}
	
	preArrive(params = {}) {
		return this.vm.$u.http.get('home/preArrive', {
			params
		})
	}
	
	afterArrive(params = {}) {
		return this.vm.$u.http.get('home/afterArrive', {
			params
		})
	}
	
	
	
	
	



}

export default (Vue, vm) => {
	if (instance === null) {
		instance = new Index(Vue, vm)
	}
	return instance
}